package com.xlh.param.user;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

/**
 * 权限
 * <p>
 * Created by lx on 2020/11/25.
 */
@Data
public class PermissionParam {

    @NotEmpty(message = "对象id不能为空")
    private List<Long> objIds;

    private boolean switchOn;

    @NotBlank(message = "code不能为空")
    private String code;

}
